<template>

      <div class="head_wrap">
        <div class="left_wrap">
          <img src="../../assets/logo.png" alt="加载中" />
          <span>管理系统</span>
        </div>
        <div class="right_wrap">
          <el-button @click="logout">退出</el-button>
        </div>
      </div>

</template>

<script>
export default {
  methods: {
    logout() {
      window.sessionStorage.removeItem('token')
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="less" scoped>

.head_wrap {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}
.left_wrap {
  display: flex;

  img {
    width: 60px;
    height: 50px;
    // background-color: brown;
    border-radius: 2px;
  }
  span {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 20px;
    padding-left: 15px;
  }
}
.right_wrap {
  align-items: center;
}
</style>